package com.pcbly.web.components.license;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
 
import com.pcbly.web.components.license.validator.CheckSignatureValidator;
import com.pcbly.web.components.license.validator.NameValidator;
import com.pcbly.web.components.license.validator.Validator;
 
public class DefaultLicenseProvider implements LicenseProvider {

	public DefaultLicenseProvider() {
	}

	public String getName() {
		return "Office";
	}

	public Version getVersion() {
		return new Version(1, 0, 0);
	}

	
	public Collection<Validator> getValidators() {
		ArrayList<Validator> validators = new ArrayList<Validator>();
		validators.add(new CheckSignatureValidator());
		validators.add(new NameValidator(getName()));
		return Collections.unmodifiableCollection(validators);
	} 

}
